"""
@tool 注解创建工具
"""
from langchain_core.tools import tool


@tool
def multiply(a: int, b: int) -> int:
    """Multiply two numbers"""
    return a * b

# 也可以异步调用
# @tool
# async def multiply(a: int, b: int) -> int:
#     """async Multiply two numbers"""
#     return a * b

#
print(multiply.name)
print(multiply.description)  # 这里必须加 工具描述，否则报错
print(multiply.args)
